{% extends 'base.html' %}

{% block title %}删除文章{% endblock %}

{% block content %}
<div class="container">
    <div class="row">
        <div class="col-md-10 offset-md-1 bg-white p-4">
            <h1 class="text-center mt-4">{{ title }}</h1>
            <form method="POST">
                {% csrf_token %}
                <div class="form-group">
                    <p>你确定要删除？ <span class="font-weight-bold text-danger">"{{ object.title }}"</span></p>
                </div>

                <div class="form-group">
                    <button class="btn btn-outline-danger" type="submit">删除</button>
                    <a href="{{ object.get_absolute_url }}" class="btn btn-outline-secondary" type="submit">取消</a>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}
